package com.suning.sawp.dto.bi;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * 〈一句话功能简述〉单品信息<br>
 * 〈功能详细描述〉
 *
 * @author 17033093
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class SaleCmmdtyDto implements Serializable{

    private static final long serialVersionUID = 8198035045964414587L;

    /**
     * 单品编码
     */
    private String cmmdtyCode = "";

    /**
     * 单品名称
     */
    private String cmmdtyName = "";

    /**
     * 销售数量
     */
    private String saleCnt = "0";

    /**
     * 销售金额
     */
    private BiSaleAmountDto saleAmount = BiSaleAmountDto.valueOf(BigDecimal.ZERO);
    
    /**
     * 平均单价
     */
    private BiSaleAmountDto avgPrice = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    public SaleCmmdtyDto() {
        super();
    }

    public SaleCmmdtyDto(String cmmdtyCode, String cmmdtyName, String saleCnt, BiSaleAmountDto saleAmount) {
        super();
        this.cmmdtyCode = cmmdtyCode;
        this.cmmdtyName = cmmdtyName;
        this.saleCnt = saleCnt;
        this.saleAmount = saleAmount;
    }

    public String getCmmdtyCode() {
        return cmmdtyCode;
    }

    public void setCmmdtyCode(String cmmdtyCode) {
        this.cmmdtyCode = cmmdtyCode;
    }

    public String getCmmdtyName() {
        return cmmdtyName;
    }

    public void setCmmdtyName(String cmmdtyName) {
        this.cmmdtyName = cmmdtyName;
    }

    public String getSaleCnt() {
        return saleCnt;
    }

    public void setSaleCnt(String saleCnt) {
        this.saleCnt = saleCnt;
    }

    public BiSaleAmountDto getSaleAmount() {
        return saleAmount;
    }

    public void setSaleAmount(BiSaleAmountDto saleAmount) {
        this.saleAmount = saleAmount;
    }

    public BiSaleAmountDto getAvgPrice() {
        return avgPrice;
    }

    public void setAvgPrice(BiSaleAmountDto avgPrice) {
        this.avgPrice = avgPrice;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("SaleCmmdtyDto [cmmdtyCode=");
        builder.append(cmmdtyCode);
        builder.append(", cmmdtyName=");
        builder.append(cmmdtyName);
        builder.append(", saleCnt=");
        builder.append(saleCnt);
        builder.append(", saleAmount=");
        builder.append(saleAmount);
        builder.append(", avgPrice=");
        builder.append(avgPrice);
        builder.append("]");
        return builder.toString();
    }
 
}
